<?php



class WhosOnlineMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.WhosOnlineMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('whos_online');
		$tMap->setPhpName('WhosOnline');

		$tMap->setUseIdGenerator(true);

		$tMap->addColumn('CUSTOMER_ID', 'CustomerId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('FULL_NAME', 'FullName', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('SESSION_ID', 'SessionId', 'string', CreoleTypes::VARCHAR, true, 128);

		$tMap->addColumn('IP_ADDRESS', 'IpAddress', 'string', CreoleTypes::VARCHAR, true, 15);

		$tMap->addColumn('TIME_ENTRY', 'TimeEntry', 'string', CreoleTypes::VARCHAR, true, 14);

		$tMap->addColumn('TIME_LAST_CLICK', 'TimeLastClick', 'string', CreoleTypes::VARCHAR, true, 14);

		$tMap->addColumn('LAST_PAGE_URL', 'LastPageUrl', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 